<?php


namespace app\api\model;


use app\common\model\TimeModel;

class MallCollage extends TimeModel
{
    protected $table = "";
    
    protected $deleteTime = 'delete_time';
    
    public function goods()
    {
        return $this->belongsTo('app\api\model\MallGoods', 'id', 'id');
    }
    
    public function user()
    {
        return $this->belongsTo('app\api\model\MallGoods', 'user_id', 'id');
    }
    public function spec()
    {
        return $this->belongsTo('app\api\model\MallGoodsSpec', 'spec_id', 'spec_id');
    }
}